﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShowPageListDialog.aspx.cs" Inherits="ZLCMS.Web.SystemManage.Template.Web.ShowPageListDialog" %>

<%@ Import Namespace ="ZLCMS.Business" %>
<%@ Import Namespace ="ZLCMS.Business.Util" %>
<form id="pageForm" runat="server">

    <div class="pageContent">
    
    <div class="pageFormContent" layoutH="60">
    
	<table class="list" targetType="navTab" asc="asc" desc="desc">
		<tbody>
            <asp:repeater runat="server" id="repeater1">
                <ItemTemplate>
			    <tr target="uid">
				    <td style="height:30px;width:120px" align=center><%# Eval("Name") %></td>
				    <td style="width:300px"><input style="width:300px" type="text" value="<%# GetPageUrl(Container.DataItem) %>"/></td>
			    </tr>
                </ItemTemplate>
            </asp:repeater>
		</tbody>
	</table>
      
        
	</div>
	
    <div class="formBar">
    <input id="submit_op" name="submit_op" type="hidden" />
	    <ul>
			<li>
	        <div class="buttonActive"><div class="buttonContent"><button  type="button"  onclick="saveParam();" class="close">保存</button></div></div>
            </li>
            
			<li>
		    <div class="button"><div class="buttonContent"><button type="button" class="close">关闭</button></div></div>
			</li>
		</ul>
    </div>
    
    </div>
    </form>
    
<script type="text/javascript">
    function saveParam() {
        dialogResult = {};
        dialogResult.ParamCode = $('#paramCode', $.pdialog.getCurrent()).val();
        dialogResult.ParamName = $('#paramName', $.pdialog.getCurrent()).val();
        dialogResult.ParamValue = $('#paramValue', $.pdialog.getCurrent()).val();
    }

    $(document).ready(function () {

        var param = <%=Request["object"] %>;

        $('#paramCode', $.pdialog.getCurrent()).val(param.ParamCode);
        $('#paramName', $.pdialog.getCurrent()).val(param.ParamName);
        $('#paramValue', $.pdialog.getCurrent()).val(param.ParamValue);
    });
</script>